<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../share/taglib.jsp" %>
<html>
<head>
<title>${buildingForm.method eq 'edit' ? '编辑' : '新增' }楼盘</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<script type="text/javascript" src="/js/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/js/jscripts/tiny_mce/button_style/default.js"></script>
<script type="text/javascript" src="/js/jscripts/tiny_mce/button_style/simple.js"></script>
<%@ include file="/sks/cms/page/share/validate.inc" %>
<script language="javascript" type="text/javascript">
tinyMCE.init(getDefaultButtonStyle("trafficInfo,surround,administration,educate,trade,medical,financial,repast,other,mapInfo"));
</script>
<html:javascript formName="buildingForm"/>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<html:form styleId="buildingForm" action="/cms/house/building.do" method="post" onsubmit="return validateBuildingForm(this);">
<html:hidden property="buildingId"/>
<html:hidden property="name"/>
<html:hidden property="status"/>
<html:hidden property="publishTime"/>
<html:hidden property="type"/>
<input type="hidden" name="method" value="${buildingForm.method}">
  <table width="90%" border="0" cellspacing="2" cellpadding="3" align="center">
    <tr bgcolor="#ffbe26">
    	<td colspan="2">
    		<%@ include file="buildingMenu.inc"%>
    	</td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="20%"><div align="right">楼盘名称：</div></td>
      <td width="80%" valign="middle">${buildingForm.name}</td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">交通信息：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="trafficInfo" styleId="trafficInfo"></html:textarea>
      <% } else { %>
      ${buildingForm.trafficInfo}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">地图信息：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="mapInfo" styleId="mapInfo"></html:textarea>
      <% } else { %>
      ${buildingForm.mapInfo}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5">
      <td><div align="right">周边：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="surround" styleId="surround"></html:textarea>
      <% } else { %>
      ${buildingForm.surround}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">行政：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="administration" styleId="administration"></html:textarea>
      <% } else { %>
      ${buildingForm.administration}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">教育：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="educate" styleId="educate"></html:textarea>
      <% } else { %>
      ${buildingForm.educate}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">商贸：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="trade" styleId="trade"></html:textarea>
      <% } else { %>
      ${buildingForm.trade}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">医疗：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="medical" styleId="medical"></html:textarea>
      <% } else { %>
      ${buildingForm.medical}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">金融：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="financial" styleId="financial"></html:textarea>
      <% } else { %>
      ${buildingForm.financial}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">餐饮：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="repast" styleId="repast"></html:textarea>
      <% } else { %>
      ${buildingForm.repast}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td><div align="right">其他：</div></td>
      <td valign="middle">
      <% if (!isReadOnly) { %>
      <html:textarea property="other" styleId="other"></html:textarea>
      <% } else { %>
      ${buildingForm.other}
      <% } %>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td colspan="2"> <div align="center"> 
          <button <%=isReadOnly ? "disabled=\"disabled\"" : ""%> type="submit" class="frm_btn">保&nbsp;&nbsp;存</button>
        </div></td>
    </tr>
  </table>
</html:form>
<br>
</body>
</html>